#include <jni.h>
#include <string>

/*
extern "C" JNIEXPORT jint JNICALL
Java_com_example_jnidemo_MainActivity_stringFromJNI(
        JNIEnv* env,
        jobject */
/* this *//*
int i, int j) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}*/

extern "C"
int
Java_com_example_jnidemo_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject obj, int i, int j /* this */) {
//    std::string hello = "Hello from C++";
//    return env->NewStringUTF(result.c_str());

    int y = i * j;
    return y;
}

